package com.ddx.pojo;

import com.ddx.common.util.DateUtils;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.models.auth.In;

import java.math.BigDecimal;
import java.util.Date;

public class User {
    private Integer id;

    private String headImage;

    private String name;

    private String password;

    private String mobile;

    private String xxNumber;

    private Integer sex;

    private Date birthDate;

    private BigDecimal totalAmount;

    private Integer totalPoint;

    private Integer isAuth;

    private String realName;

    private String idCard;

    private String wxId;

    private String weiboId;

    private String qqId;

    private Integer isBond;

    private Integer inviteUserId;

    private Date createTime;

    private Date updateTime;

    private Integer isDeleted;

    private String signature;

    private String province;

    private String city;

    private boolean supplier;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getHeadImage() {
        return headImage;
    }

    public void setHeadImage(String headImage) {
        this.headImage = headImage == null ? null : headImage.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile == null ? null : mobile.trim();
    }

    public String getXxNumber() {
        return xxNumber;
    }

    public void setXxNumber(String xxNumber) {
        this.xxNumber = xxNumber == null ? null : xxNumber.trim();
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = DateUtils.DateTimeFormat, timezone = "GMT+8")
    public Date getBirthDate() {
        return birthDate;
    }

    public void setBirthDate(Date birthDate) {
        this.birthDate = birthDate;
    }

    public BigDecimal getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(BigDecimal totalAmount) {
        this.totalAmount = totalAmount;
    }

    public Integer getTotalPoint() {
        return totalPoint;
    }

    public void setTotalPoint(Integer totalPoint) {
        this.totalPoint = totalPoint;
    }

    public Integer getIsAuth() {
        return isAuth;
    }

    public void setIsAuth(Integer isAuth) {
        this.isAuth = isAuth;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName == null ? null : realName.trim();
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard == null ? null : idCard.trim();
    }

    public String getWxId() {
        return wxId;
    }

    public void setWxId(String wxId) {
        this.wxId = wxId == null ? null : wxId.trim();
    }

    public String getWeiboId() {
        return weiboId;
    }

    public void setWeiboId(String weiboId) {
        this.weiboId = weiboId == null ? null : weiboId.trim();
    }

    public String getQqId() {
        return qqId;
    }

    public void setQqId(String qqId) {
        this.qqId = qqId == null ? null : qqId.trim();
    }

    public Integer getInviteUserId() {
        return inviteUserId;
    }

    public void setInviteUserId(Integer inviteUserId) {
        this.inviteUserId = inviteUserId;
    }

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = DateUtils.DateTimeFormat, timezone = "GMT+8")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = DateUtils.DateTimeFormat, timezone = "GMT+8")
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    public String getSignature() {
        return signature;
    }

    public void setSignature(String signature) {
        this.signature = signature == null ? null : signature.trim();
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public boolean isSupplier() {
        return supplier;
    }

    public void setSupplier(boolean supplier) {
        this.supplier = supplier;
    }

    public Integer getIsBond() {
        return isBond;
    }

    public void setIsBond(Integer isBond) {
        this.isBond = isBond;
    }

    @Override
    public String toString() {
        return "User{" + "id=" + id + ", headImage='" + headImage + '\'' + ", name='" + name + '\'' + ", password='" + password + '\'' + ", mobile='" + mobile + '\'' + ", xxNumber='" + xxNumber + '\'' + ", sex=" + sex + ", birthDate=" + birthDate + ", totalAmount=" + totalAmount + ", totalPoint=" + totalPoint + ", isAuth=" + isAuth + ", realName='" + realName + '\'' + ", idCard='" + idCard + '\'' + ", wxId='" + wxId + '\'' + ", weiboId='" + weiboId + '\'' + ", qqId='" + qqId + '\'' + ", inviteUserId=" + inviteUserId + ", createTime=" + createTime + ", updateTime=" + updateTime + ", isDeleted=" + isDeleted + ", signature='" + signature + '\'' + '}';
    }
}